package com.huike.pmps.model.constants;

/**
 * 作者：谌贵斌(黑桃K)
 * 日期: 2888-08-08
 * 老师QQ: 272488352
 * 官方QQ交流群: 377748272
 * 刀客程序员官网：http://www.daoke360.com
 * 刀客程序员淘宝旗舰店：https://daoke360.taobao.com/
 */
public class GlobalConstants {

    /**
     * 字典类型key的类型
     * 1产品类型、2产品线、3订单类型、4合同类型、5课程类别、6学科门类、7课程上线状态、8课程进度,
     * 9前期沟通进度,10供应商可提供的服务,11拍摄形式、12发票类型、13支付状态、14供应商类型
     */
    public static Integer DICTIONARY_PRODUCT_TYPE = 1;
    public static Integer DICTIONARY_PRODUCT_LINE = 2;
    public static Integer DICTIONARY_ORDER_TYPE = 3;
    public static Integer DICTIONARY_CONTRACT_TYPE = 4;
    public static Integer DICTIONARY_COURSE_TYPE = 5;
    public static Integer DICTIONARY_SUBJECT_CATEGORY_TYPE = 6;
    public static Integer DICTIONARY_COURSE_ONLINE_TYPE = 7;
    public static Integer DICTIONARY_COURSE_SCHEDULE_TYPE = 8;
    public static Integer DICTIONARY_COURSE_EARLY_EXCHANGE_TYPE = 9;
    public static Integer DICTIONARY_SUPPLIER_SERVICE_CONTENT_TYPE = 10;
    public static Integer DICTIONARY_SHOOT_MODE_TYPE = 11;
    public static Integer DICTIONARY_INVOICE_TYPE = 12;
    public static Integer DICTIONARY_PAYMENT_STATE_TYPE = 13;
    public static Integer DICTIONARY_SUPPLIER_TYPE = 14;

    /**
     * 系统资源状态
     */
    public static Integer SYSTEM_PERMISSION_OFF = 0;
    public static Integer SYSTEM_PERMISSION_ON = 1;


    /**
     * po状态(1进行中、2已完成、3已过期)
    public static Integer PO_STATE_ING = 1;
    public static Integer PO_STATE_FINISHED = 2;
    public static Integer PO_STATE_EXPIRED = 3;
     */

    /**
     * update by zcw 2021-07-05
     * po状态(1未启动 、2进行中、3已交付、4已验收、 5已完结 6已终止 7已过期)
     */
    public static Integer PO_STATE_UNSTART = 1;
    public static Integer PO_STATE_START = 2;
    public static Integer PO_STATE_DELIVER = 3;
    public static Integer PO_STATE_RECEPT = 4;
    public static Integer PO_STATE_FINISH = 5;
    public static Integer PO_STATE_OVER = 6;
    public static Integer PO_STATE_EXPIRED = 7;
    /**
     * PO记录状态(1新合同，2生成了po码)
     */
    public static Integer PO_STATE_INIT = 1;
    public static Integer PO_STATE_CODE = 2;


    /**
     * PO课程记录状态(0未确认,1已确认)
     */
    public static Integer PO_COURSE_STATE_UNCONFIRMED = 0;
    public static Integer PO_COURSE_STATE_CONFIRMED = 1;

    /**
     * PO课程状态
     */
    public static String PO_COURSE_STATE_UNSTART = "未启动";
    public static String PO_COURSE_STATE_START = "进行中";
    public static String PO_COURSE_STATE_DELIVER = "已交付";
    public static String PO_COURSE_STATE_RECEPT = "已验收";
    public static String PO_COURSE_STATE_FINISH = "已完结";
    public static String PO_COURSE_STATE_OVER = "已终止";

    /**
     * PO课程-供应商记录状态(0初始状态、1已生成结算清单)
     */
    public static Integer PO_COURSE_SUPPLIER_STATE_INIT = 0;
    public static Integer PO_COURSE_SUPPLIER_STATE_JSD = 1;


    /**
     * 结算单记录状态(0新结算单，1已入库)
     */
    public static Integer SUPPLIER_SETTLEMENT_STATE_INIT = 0;
    //public static Integer SUPPLIER_SETTLEMENT_STATE_IMPORT = 1;
    public static Integer SUPPLIER_SETTLEMENT_STATE_IN = 1;


    /**
     * 供应商状态(0禁用、1启用)
     */
    public static Integer SUPPLIER_STATE_OFF = 0;
    public static Integer SUPPLIER_STATE_ON = 1;



    /**
     * 供应商合同状态( 1合同状态、2未签订、3正常、4过期、5即将到期(距离合同到期2个月开始) )
     */
    public static Integer SUPPLIER_CONTRACT_STATE_ING = 1;
    public static Integer SUPPLIER_CONTRACT_STATE_NOT = 2;
    public static Integer SUPPLIER_CONTRACT_STATE_NORMAL = 3;
    public static Integer SUPPLIER_CONTRACT_STATE_EXPIRE = 4;
    public static Integer SUPPLIER_CONTRACT_STATE_DUE = 5;

    public static Integer YEAR = 4;
    public static Integer SEASON = 3;
    public static Integer MONTH = 2;
    public static Integer WEEK_OF_YEAR = 1;
    public static Integer WEEK_OF_MONTH = 0;

    //管理员
    public static Integer SYSTEM_ROLE_ADMIN = 1;
    //战区司令
    public static Integer SYSTEM_ROLE_REGION = 2;
    //省管理员
    public static Integer SYSTEM_ROLE_PROVINCE = 3;
    //课程编导
    public static Integer SYSTEM_ROLE_COURSE_CHARGE= 4;
    //入库管理员
    public static Integer SYSTEM_ROLE_WAREHOUSE= 5;

    /**
     * redis 中保存的key常量
     */
    //合同序号
    public static String REDIS_HASH_CONTRACT_NO = "contract_no";
    //合同序号
    public static String REDIS_HASH_COURSE_NO = "course_no";
    //字典数据
    public static String REDIS_HASH_DICTIONARY_DATA = "dictionary_data";

}
